package cn.shop.front;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

/**
 * @author admin
 */
@EnableConfigurationProperties
@SpringBootApplication(scanBasePackages = {"cn.shop"})
@MapperScan({"cn.shop.front.mapper", "cn.shop.transcation.**.mapper"})
public class ShopFrontApplication {

	@Bean
	public RestTemplate restTemplate() {
		return new RestTemplate();
	}

	public static void main(String[] args) {
		SpringApplication.run(ShopFrontApplication.class, args);
	}

}
